Ext.extend(demo.module,{
    init: function(){
        var opt={
         loadParams:{url:'findarticle',params:{article:{id:'contact'}}}
        };        
        var ef=new Ext.fay.ui.EditorForm(opt);
		this.main.add(ef.form);
	    this.main.doLayout(); 
	    ef.on("save",function(v){	    
	       this.postJson({
	        url:"savearticle",        
	        params:{article:v}
	       });   
	    });
    }
});